# # 导入定时任务
# from apscheduler.schedulers.background import BackgroundScheduler,BlockingScheduler
# # 使用线程执行器
# from apscheduler.executors.pool import ThreadPoolExecutor
#
# import os,datetime
#
#
# def git_push():
#
#     push_date = datetime.datetime.now().strftime("%Y-%m-%d.%H:%M:%S")
#     os.system("git add ./")
#     os.system(f"git commit -m {push_date}")
#     os.system(f"git push origin master")
#     print(f"提交日期：{push_date}")
#
#
# executors = {
#     'default': ThreadPoolExecutor(1)  # 开启10个线程
# }
# scheduler = BlockingScheduler(executors)  # 创建定时任务的调度器对象——实例化调度器
#
#
# # 向调度器中添加定时任务
# # scheduler.add_job(git_push, 'interval', minutes=1)
# scheduler.add_job(git_push, 'interval', seconds=30)
# # 启动定时任务调度器工作——调度器开始
# scheduler.start()
# # 向调度器中添加定时任务




# srting = 'abxacdxabe'
# lst = list(srting)
# lst.sort()
# divt ={}
# for i in lst:
#     if i in divt:
#         divt[i]+=1
#     else:
#         divt[i] =1
# print(divt)


